package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 会员订单管理对象 finance_member
 * 
 * @author ruoyi
 * @date 2024-10-31
 */
public class FinanceMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** ID */
    @Excel(name = "ID")
    private String number;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNumber;

    /** 购买内容 */
    @Excel(name = "购买内容")
    private String buy;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal price;

    /** 交易状态 */
    @Excel(name = "交易状态")
    private Long status;

    /** 用户名 */
    @Excel(name = "用户名")
    private String uname;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tradingHours;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }
    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }
    public void setBuy(String buy) 
    {
        this.buy = buy;
    }

    public String getBuy() 
    {
        return buy;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setUname(String uname) 
    {
        this.uname = uname;
    }

    public String getUname() 
    {
        return uname;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setTradingHours(Date tradingHours) 
    {
        this.tradingHours = tradingHours;
    }

    public Date getTradingHours() 
    {
        return tradingHours;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("number", getNumber())
            .append("orderNumber", getOrderNumber())
            .append("buy", getBuy())
            .append("price", getPrice())
            .append("status", getStatus())
            .append("uname", getUname())
            .append("avatar", getAvatar())
            .append("phone", getPhone())
            .append("tradingHours", getTradingHours())
            .toString();
    }
}
